package view;

import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
import javax.swing.KeyStroke;

import presenter.IMapMenuPresenter;
import presenter.LogPresenter;
import presenter.MapMenuPresenter;

public class MapMenu extends JMenuBar implements IMapMenu {
	
	private IMapMenuPresenter mapMenuPresenter;

	private JMenu view;
	
	private JMenuItem viewMenuItemGrid;
	
	private MapMenu() {
		
		mapMenuPresenter = new MapMenuPresenter(this);
		
		mapMenuPresenter.InitializeMenu();
			
	}
	
	public static MapMenu getInstance() {
		return new MapMenu();
	}
	
	@Override
	public void InitializeMenu() {
		
		view = new JMenu("view");
		view.setMnemonic(KeyEvent.VK_V);
		
		viewMenuItemGrid = new JMenuItem("test");
		viewMenuItemGrid.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_T, ActionEvent.CTRL_MASK));
		
		view.add(viewMenuItemGrid);
		
		add(view);
	}

}
